<template>
	<div style="margin-top: 20px;">

		<el-carousel :interval="4000" type="card" height="200px">
			<!-- <el-carousel-item v-for="item in 6" :key="item">
				<h3>{{ item }}</h3>
			</el-carousel-item> -->

			<el-carousel-item>
				<img :src="carouselImg1">
			</el-carousel-item>
			<el-carousel-item>
				<img :src="carouselImg2">
			</el-carousel-item>
			<el-carousel-item>
				<img :src="carouselImg3">
			</el-carousel-item>
			<el-carousel-item>
				<img :src="carouselImg4">
			</el-carousel-item>

		</el-carousel>

	</div> 
</template>

<script>
	import Vue from 'vue';
	import carouselImg1 from '../assets/1.jpg';
	import carouselImg2 from '../assets/2.jpg';
	import carouselImg3 from '../assets/3.jpg';
	import carouselImg4 from '../assets/4.jpg';
	export default {
		data() {
			return {
				carouselImg1,
				carouselImg2,
				carouselImg3,
				carouselImg4
			};
		}
	}
</script>

<style scoped>
	.el-carousel__item h3 {
		color: #475669;
		font-size: 14px;
		opacity: 0.75;
		line-height: 200px;
		margin: 0;
	}

	.el-carousel__item:nth-child(2n) {
		background-color: #99a9bf;
	}

	.el-carousel__item:nth-child(2n+1) {
		background-color: #d3dce6;
	}
	img {
		width: 100%;
		height:100%;
	}
</style>
